package br.com.social.mobile.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="TB_CHAT_GROUP")
public class ChatGroup extends AbstractEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1846067492058752646L;

	@Column(name="NU_ID_CHAT")
    private Long nuIdChat;
	
	@Column(name="NU_ID_USER")
	private Long nuIdUser;

	@Column(name="FLG_ACTIVE")
	private Boolean isActive;
	
	@Column(name="DT_LAST_UPDATE")
	private Date dtLastUpdate;
	
	
	public Long getNuIdChat() {
		return nuIdChat;
	}

	public void setNuIdChat(Long nuIdChat) {
		this.nuIdChat = nuIdChat;
	}

	public Long getNuIdUser() {
		return nuIdUser;
	}

	public void setNuIdUser(Long nuIdUser) {
		this.nuIdUser = nuIdUser;
	}
	
	public Boolean getIsActive() {
		return isActive;
	}

	public void setIsActive(Boolean isActive) {
		this.isActive = isActive;
	}	

	public Date getDtLastUpdate() {
		return dtLastUpdate;
	}

	public void setDtLastUpdate(Date dtLastUpdate) {
		this.dtLastUpdate = dtLastUpdate;
	}

	@Override
	public String toString() {
		return "ChatGroup [getId()=" + getId() + ", nuIdChat=" + nuIdChat
				+ ", nuIdUser=" + nuIdUser + "]";
	}

}
